



#include "inc/AppInit.h"


int main(void)
{
    User_Init();

    //_BIS_SR(GIE);            // 使能总中断
    //_BIC_SR(GIE);            // 失能总中断

    for(;;)
    {
        do
        {
            uint8_t m_temp = TaskPrioTable[tTaskMain];
            Tasklist[m_temp].TaskSwitch(m_temp);
        }
        while(tTaskMain);
        //Feed_The_IWDog();
    }
}






#pragma vector = WDT_VECTOR
__interrupt void WDT_ISR(void)
{
    //P1OUT = P1OUT ^ BIT0;
    tLED_TimeProc(1);
    //P1OUT = P1OUT ^ BIT6;
}








#pragma vector = PORT1_VECTOR
__interrupt void PORT1_ISR(void)
{
    //-----启用Port1事件检测函数-----
    P1IFG=0;                                        //退出中断前必须手动清除IO口中断标志
}




